package cn.sw.system.onemany.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface GenericMapper extends BaseMapper<Map<String, Object>> {
    @Select("${sql}") // 注意这里是 ${sql}，不是 #{}，用于拼接完整 SQL
    List<Map<String, Object>> executeCustomSQL(@Param("sql") String sql);
}
